package com.shop.dao;

import com.shop.entity.Product;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface ProductMapper {
    List<Product> findAllProductByStoreId(Long userId);

    Product selectByCategoryIdAndName(String productName, Long categoryId);

    int insertSelective(Product product);

    Product selectByPrimaryKey(Long productId);

    int updateByPrimaryKeySelective(Product product);

    int deleteByPrimaryKey(Long productId);

    List findGoodsListBySearch(@Param("searchInfo") String searchInfo);

    List selectLimitFive();
}
